﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TBR.Entities
{
    public class User : UserBase
    {
        
        public int Age { get; private set; }
        public string Location { get; private set; }
        public ESex Sex { get; private set; }
       

        public User(string id, string name, string imgUrl, int age, string location, ESex sex, string actionDate)
            : base(id, name, actionDate, imgUrl)
        {
            //ImgUrl = imgUrl;
            Age = age;
            Location = location;
            Sex = sex;
        }
        public string NameWithAge
        {
            get
            {
                return String.Format("{0}, {1}", Name, Age);
            }
        }
    }

    public enum ESex
    {
        Everbody = 0,
        Male = 1,
        Female = 2
    }
}
